package com.zhangyu.shadow.repair.delegate.repair.entity;

import com.chad.library.adapter.base.entity.AbstractExpandableItem;
import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.zhangyu.shadow.repair.delegate.repair.ExpandableItemAdapter;

/**
 * Created by zhangyu on 2016/8/10.
 */
public class Level0Item extends AbstractExpandableItem<Level1Item> implements MultiItemEntity {
    public final String mName;
    public final String mCode;
    public final boolean isCanAdd;

    public Level0Item(String name, String code, boolean isCanAdd) {
        this.mName = name;
        this.mCode = code;
        this.isCanAdd = isCanAdd;
    }

    @Override
    public int getItemType() {
        return ExpandableItemAdapter.TYPE_LEVEL_0;
    }

    @Override
    public int getLevel() {
        return 0;
    }
}
